<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>keyevent</title>

</head>
<body>

    <div id="app" >
        <h2>您的生日是;{{birthy}}</h2>
    </div>
</body>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
    let vm = new Vue({
        el:"#app",
        data:{
            birthday:1429032123201
        },
        computed:{
            birthy(){
                const d = new Date(this.birthday);
                return d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
            }
        }
    })
</script>
</html>